(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["preloadChunk-ButtonsApp"],{5975:function(t,e,s){"use strict";s("4de4"),s("caad"),s("d81d"),s("14d9"),s("2532");var i=s("ca47"),n=s("10ba");const a=["ios","android"];e["a"]={computed:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Object(i["e"])("bottomSheet",["getOpenedBottomSheets"])),Object(i["e"])("breakpoints",["isMobileOrTablet"])),Object(i["e"])("cmsConfig",["getAppLinks","getDomainWebView"])),Object(i["e"])("player",["getLanguageForUrl"])),{isNotAndroid(){return"android"!==n["a"].osName.toLowerCase()},iosLink(){return"Mac OS"===n["a"].osName&&this.getAppLinks.macOs?this.getAppLinks.macOs:this.getAppLinks.iOs},isDownloadAppPage(){return this.$route.path.includes(this.getAppLinks.android)},mappedSystems(){const t=this.isDownloadAppPage?this.getAppLinks.androidApp:`${this.getLanguageForUrl}${this.getAppLinks.android}`;return this.getDomainWebView?[]:a.map(e=>({name:e,link:"ios"===e&&(this.isNotAndroid||this.isDownloadAppPage)?this.iosLink:t}))},systems(){return this.mappedSystems.filter(({name:t})=>t===n["a"].osName.toLowerCase())}}),methods:{handleClick(t){var e;this.gtmElement&&this.$analytics.clickEvent({button:""+this.gtmElement,option:t.name}),"ios"===t.name&&this.isNotAndroid||this.isDownloadAppPage?window.open(t.link):(this.$router.push(t.link).catch(()=>({})),this.$emit("click-handler"),(null===(e=this.getOpenedBottomSheets)||void 0===e?void 0:e.length)&&this.isMobileOrTablet&&this.$bus.emit("close-menu-burger-bottom-sheets"))}}}},7827:function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t._self._c;return t.isButtonsVisible?e("nav",{staticClass:"buttons-app nav-list"},[e("ul",{staticClass:"buttons-app__list"},t._l(t.systemsForButtons,(function(s){return e("li",{key:s.name,staticClass:"buttons-app__item",class:t.className(s.name)},[e("a",{staticClass:"buttons-app__link nav-link btn btn--secondary btn--border-animated",attrs:{href:s.link},on:{click:function(e){return e.preventDefault(),t.handleClick(s)}}},[e("span",{staticClass:"btn__border-hover"}),e("div",{staticClass:"buttons-app__item-icon-wr"},[e("img",{staticClass:"buttons-app__item-icon",attrs:{src:t.changeImg(s.name),alt:s.name}})]),e("div",{staticClass:"buttons-app__item-info"},[e("div",{staticClass:"buttons-app__item-text",domProps:{innerHTML:t._s(t.changeText(s.name))}})])])])})),0)]):t._e()},n=[],a=s("5530"),o=(s("caad"),s("ca47")),r=s("5975"),l={name:"buttons-app",mixins:[r["a"]],props:{type:{type:String,default:"black",validator(t){return["black","grey","color","secondary"].includes(t)}},size:{type:String,default:"m",validator(t){return["s","m","l","big"].includes(t)}},gtmElement:{type:String,default:""},allButtonsVisibleOnMobile:{type:Boolean,default:!1}},computed:Object(a["a"])(Object(a["a"])(Object(a["a"])(Object(a["a"])({},Object(o["e"])("cmsConfig",["getDomainWebView"])),Object(o["e"])("player",["isPlayerAuthorized"])),Object(o["e"])("breakpoints",["isMobileOrTablet"])),{},{isButtonsVisible(){return!this.isBigButton||!this.getDomainWebView&&this.systemsForButtons.length},isBigButton(){return"big"===this.size},systemsForButtons(){return!this.isMobileOrTablet||this.allButtonsVisibleOnMobile?this.mappedSystems:this.systems}}),methods:{className(t){return["buttons-app__item--type-"+this.type,"buttons-app__item--size-"+this.size,"buttons-app__item--"+t,{"buttons-app__item--auth":this.isPlayerAuthorized}]},changeImg(t){const e=this.isBigButton?"svg":"webp";return`/img/download-app/${t}_logo_app.${e}`},changeText(t){const e=this.isBigButton?"app_download":t+"_download";return this.isMobileOrTablet?this.$t("buttons_app."+e):t}}},p=l,c=(s("d9cd"),s("2877")),u=Object(c["a"])(p,i,n,!1,null,null,null);e["default"]=u.exports},c930:function(t,e,s){},d9cd:function(t,e,s){"use strict";s("c930")}}]);